package com.clever.mall.service.impl;

import com.clever.mall.service.UploadService;
import com.clever.mall.utils.UploadFileUtil;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @className UploadServiceImpl
 * @date 2020/11/09 11:44
 * @since JDK 1.8
 */
@Service
public class UploadServiceImpl implements UploadService {

    @Override
    public String uploadImg(MultipartFile multipartFile) throws IOException {
        return UploadFileUtil.uploadFile(multipartFile);
    }
}
